﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EvoAlgLib
{
    public class ConstFunc: Func
    {
        private double _val;
        public ConstFunc(double val): base(0) { this._val = val; }
        public override double getVal(params double[] args)
        {
            return this._val;
        }

        public override string ToString()
        {
            return this._val.ToString();
        }
    }
}
